package polymorphic2;

/**
 * @classname:SaralyTest
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/2 17:22
 * @version: 0.1
 * @since:1.8
 */
public class SaralyTest {
    public static void main(String[] args) {
        PM pm = new PM(1,"张三","男",1000,100,3000);

        SE se = new SE(2,"王五","男",2000,10);
        double v = Salary.CaleSalary(pm);
        double v1 = Salary.CaleSalary(se);
        System.out.println("pm工资是"+v);
        System.out.println("pm工资是"+v1);
    }
}
